﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using OrganizerLibrary.Settings;

namespace OrganizerLibrary.Processors
{
    public class StandardProcessor : ProcessorBase
    {
        private readonly DirectoryInfo _targetDirectory;

        private StandardProcessor(FileSystemInfo inboundFile, DirectoryInfo targetDirectory) : base(inboundFile)
        {
            _targetDirectory = targetDirectory;
        }

        public static StandardProcessor Instantiate(FileSystemInfo inboundFile, DirectoryInfo targetDirectory)
        {
            return new StandardProcessor(inboundFile, targetDirectory);
        }

        protected override String GetTargetDirectory()
        {
            return _targetDirectory.FullName;
        }
    }
}
